<%@page pageEncoding="utf-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>车位使用数据编辑</title>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/communitywjz.css">
    <script src="${pageContext.request.contextPath}/lib/layui/layui.js" charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/js/x-layui.js" charset="utf-8"></script>

    <script>
        layui.use(['element','layer','form'], function(){});
    </script>

    <style>
        .imgs{display: none;}
        .picture{display: none;}
    </style>

</head>

<body>

<div class="main">
    <form class="" action="${pageContext.request.contextPath}/parkinguse/edit" method="post"
          id="edit" enctype="multipart/form-data">

        <input type="text" name="id" value="${parkinguse.id}" hidden>

        <div class="form-item">
            <label class="form-label">所属小区</label>
            <div class="input-block">
                <select class="form-select" name="vname">
                    <option>---请选择小区---</option>
                    <c:forEach items="${villages}" var="village">
                        <option value="${village.id}"> ${village.name}</option>
                    </c:forEach>
                </select>
            </div>
        </div>

        <div class="form-item">
            <label class="form-label">车位名称</label>
            <div class="input-block">
                <select class="form-select" name="pname">
                    <option>---请选择车位---</option>
                    <c:forEach items="${parkings}" var="parking">
                        <option value="${parking.id}"> ${parking.parkingName}</option>
                    </c:forEach>

                </select>
            </div>
        </div>

        <div class="form-item">
            <label class="form-label">车辆所有人姓名</label>
            <div class="input-block">
                <select class="form-select" name="hname">
                    <option>---请选择车辆所有人姓名---</option>
                    <c:forEach items="${persons}" var="person">
                        <option value="${person.id}"> ${person.name}</option>
                    </c:forEach>

                </select>
            </div>
        </div>

        <div class="form-item">
            <label class="form-label">车牌号</label>
            <div class="input-block">
                <input type="text" name="carNum" autocomplete="off" placeholder=" 请输入车牌号，控制在160个字符以内"
                       class="form-input" value="">
            </div>
        </div>

        <div class="form-item">
            <label class="form-label">车辆牌照</label>
            <div class="input-block">
                <input type="file" name="photos" autocomplete="off" placeholder=""
                       class="form-input" value="">
            </div>
        </div>

        <div class="form-item">
            <label class="form-label">联系方式</label>
            <div class="input-block">
                <input type="text" name="telephone" autocomplete="off" placeholder=" 请输入联系方式，控制在160个字符以内"
                       class="form-input" value="">
            </div>
        </div>

        <div class="form-item">
            <label class="form-label">使用性质</label>
            <div class="input-block">
                <input type="radio" class="form-icon" name="type" value="1" title="长租" checked="checked">
                <div class="form-radio">
                    <div>长租</div>
                </div>
                <input type="radio" class="form-icon" name="type" value="0" title="短租">
                <div class="form-radio">
                    <div>短租</div>
                </div>
            </div>
        </div>

        <div class="form-item">
            <label class="form-label">总费用(￥)</label>
            <div class="input-block">
                <input type="text" name="cost" autocomplete="off" placeholder=" 请输入总费用，控制在160个字符以内"
                       class="form-input" value="">
            </div>
        </div>

        <div class="form-item">
            <label class="form-label">截止时间</label>

            <div class="endtime">
                <input type="date" class="form-time" name="endDate" id="END_demorange_s">
            </div>

        </div>




        <!--<div class="layui-form-item">
            <label class="layui-form-label">
                <span class='x-red'>*</span>外链地址
            </label>
            <div class="layui-input-block">
                <input type="text" name="link" value="" autocomplete="off" placeholder="请以“http://”开头"
                class="layui-input">
            </div>
        </div>-->

        <div class="form-item">
            <button class="btn" type="submit" lay-filter="add" lay-submit="">保存修改</button>
        </div>

    </form>
</div>

</body>
</html>